<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>








  
  
  
  
  
  
  
  <style type="text/css">
html { font-family: Arial,Helvetica,sans-serif;
background-color: white;
color: black;
}
p { max-width: 60em;
}
table { border-collapse: collapse;
empty-cells: show;
margin: 1em 0em;
border: 0.1em solid black;
}
th, td {
border-style: solid;
border-width: 0.05em 0.1em;
border-color: black;
padding: 0.1em 0.2em;
height: 1.5em;
}
th {
background-color: rgb(192, 192, 192);
color: black;
border-width: 0.1em;
font-weight: bold;
text-align: center;
text-transform: capitalize;
letter-spacing: 0.1em;
}
/* Widths of named columns */
col.name {
width: 10em;
}
.action , .value, .arg {
width: 15em;
}
/* Properties for the name column - td:first-child should work in CSS 2.1 avare browsers (tested in Firefox)
- col.name is against specs but works in IE
*/
td:first-child, col.name {
background-color: rgb(240, 240, 240);
text-transform: capitalize;
letter-spacing: 0.1em;
}
th { font-style: normal; } /* required for IE */
  </style>
  


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  <title>Robot Test Cases</title><link type="text/css" href="resources/css/testdata.css" rel="stylesheet"></head>
<body>








<h1><br></h1>



<span style="font-weight: bold;">


</span>
<table border="1">


  <thead><tr>


    <th>Setting</th>








    <th>Value</th>








    <th>Value</th>








    <th>value</th>








    <th>Value</th>








  </tr>








  </thead> <tbody>








    <tr>



      <td>Document</td>



      <td>Tests for checking that failing library imports will produce tracebacks to the log file.</td><td align="undefined" valign="undefined"></td>



      <td align="undefined" valign="undefined"></td>



      <td align="undefined" valign="undefined"></td>



    </tr>



    <tr>



      <td>Force Tags</td>



      <td>regression</td>



      <td></td>



      <td align="undefined" valign="undefined"></td>



      <td align="undefined" valign="undefined"></td>



    </tr>



    <tr>



      <td align="undefined" valign="undefined">Default Tags</td>



      <td>pybot<br></td><td align="undefined" valign="undefined">jybot</td>



      



      <td align="undefined" valign="undefined"></td>



      <td align="undefined" valign="undefined"></td>



    </tr>



    <tr>








      <td>Resource</td>








      <td>atest_resource.txt</td>








      <td></td>








      <td></td>








      <td></td>








    </tr>








    




    





    <tr>








      <td>Suite Setup</td>








      <td>Run Tests</td>








      <td><br>

      </td>








      <td>test_libraries${/}library_import_failing.html</td><td></td>








    </tr>








  
  
  
  
  
  
  
  </tbody>
</table>













<table border="1">








  <colgroup span="99"><col class="name"><col class="value" span="4"></colgroup> <thead>
  <tr>








    <th>Variable</th>








    <th>Value</th>








    <th>Value</th>








    <th>Value</th>








    <th>Value</th>








  </tr>








  </thead> <tbody>








    <tr>








      <td></td>








      <td></td>








      <td></td>








      <td></td>








      <td></td>








    </tr>








  
  
  
  
  
  
  
  </tbody>
</table>













<table border="1">








  <colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
  <thead> <tr>








    <th>Test Case</th>








    <th>Action</th>








    <th>Argument</th>








    <th>Argument</th>








    <th>Argument</th>








  </tr>








  </thead> <tbody>








    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    



    

    

    








    










    










    








    













    








    








    




    




    <tr>








      <td>Library Import Fails Because Not a Library</td>








      <td>Check Failure From Output</td>








      <td>0</td>








      <td>Importing test library 'MyInvalidLibFile' failed: ImportError: I'm not really a library!</td><td>raise ImportError("I'm not really a library!")</td>








      








    </tr>










    










    <tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Library Import Fails Because Initialization Fails</td><td>Check Failure From Output</td><td>2</td><td>Creating an instance of the test library 'InitializationFailLibrary' with no arguments failed: Initialization failed!</td><td> InitializationFailLibrary.py", line 4, in __init__</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Library Import Failing In Java</td><td>[Tags]</td><td>jybot</td><td></td><td></td></tr><tr><td><br></td><td>Check Failure From Output</td><td>1</td><td>Creating an instance of the test library 'InitializationFailJavaLibrary' with no arguments failed: Initialization failed!</td><td>at InitializationFailJavaLibrary.&lt;init&gt;(InitializationFailJavaLibrary.java:4)</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr>








    








  
  
  
  
  
  
  
  </tbody>
</table>








<br>








<table border="1">








  <colgroup span="99"><col class="name"><col class="value" span="4"></colgroup> <thead>
  <tr>








    <th>Keyword</th>








    <th>Action</th>








    <th>Argument</th>








    <th>Argument</th>








    <th>Argument</th>








  </tr>








  </thead> <tbody>








    <tr>








      <td>Check Failure From Output</td>








      <td>[Arguments]</td>








      <td>${index}</td><td>${expected message}








      </td>








      <td>${expected traceback}=</td>








    </tr>



    <tr><td></td><td>${message} =</td><td>Set Variable</td><td>${ERRORS.msgs[${index}].message}</td><td></td></tr><tr>



      <td align="undefined" valign="undefined"></td>



      <td>Should Contain</td><td>${message}</td>



      



      <td align="undefined" valign="undefined">${expected message}</td>



      <td align="undefined" valign="undefined"></td>



    </tr><tr><td></td><td>Should Contain</td><td>${message}</td><td>${expected traceback}</td><td></td></tr>








  
  
  
  
  
  
  
  </tbody>
</table>













</body></html>